using System.Collections;
using UnityEngine;
using UnityEngine.UI;

public class GamePanel : BasePanel
{
    static readonly string path = "UI/Panel/GamePanel";
    public GamePanel() : base(new UIType(path)) { }
    public override void OnEnter()
    {
        uitool.GetOrAddComponentInChildren<Button>("ExitButton").onClick.AddListener(() =>
        {
            panelmanager.Push(new ExitPanel());
        });
    }
}
